home *** CD-ROM | disk | FTP | other *** search
- Path: walt.tsc.com!usenet
- From: Glenn Goldstein <ggoldstein@tsc.com>
- Newsgroups: comp.lang.c
- Subject: Perl-like Regular Expression Library Without Perl
- Date: Wed, 10 Apr 1996 08:11:48 -0500
- Organization: Technology Service Corporation
- Message-ID: <316BB394.61FB@tsc.com>
- NNTP-Posting-Host: elmer.tsc.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/725)
- CC: goldy@tsc.com
-
- I am looking for a regular expression library for C (commercial is OK)
- that implements Perl regular expressions. Calling Perl from C is not an
- option; Perl will not be on the target platform <darn!>.
-
- I have built GNU's rx and regexp. However, since I am porting a Perl
- program to C, I would prefer not having to translate the regular
- expressions from Perl's regexp to Emacs regexp (I am assuming that these
- have some differences).
-
- Any pointers or ideas? The FAQ only mentioned the GNU libraries (and
- one other).
- -----
-
- If you're interested, the program is used to extract data from binary
- files and stuff it into an Oracle database. This was easy to do in Perl
- (using Oraperl) eventhough the program must examine the binary files to
- determine what Oracle tables to construct. There are a fair number of
- related tables and the binary files may exceed 500MB.
-
- Unfortunately, the client cannot/willnot use Perl. I am going to port
- the program to ANSI C using Oracle's Pro*C precompiler and some regular
- expression library. This was a case where Perl was a much better choice
- than C for programming. I estimate that while it took about 3 days to
- write the program in Perl, it will take something like 2 weeks to port
- it to C (admittedly, this is due in part to my rusty C skills). <sigh>
- --
- ____________________________GLENN
- GOLDSTEIN_____________________________
- | Technology Service Corporation
- |
- | ggoldstein@tsc.com http://www.tsc.com:80/~goldy
- |
- |_ Voice:__(812) 336-7576_________________Fax:__(812)
- 336-7735___________|
-